/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Creek</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15059 (C-0-T14914-S14915-S14916-S15059-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianCreek()
 * @model extendedMetaData="name='RaceAmericanIndianCreek'"
 * @generated
 */
public enum RaceAmericanIndianCreek implements Enumerator {
	/**
	 * The '<em><b>11932</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11932_VALUE
	 * @generated
	 * @ordered
	 */
	_11932(0, "_11932", "1193-2"),

	/**
	 * The '<em><b>11940</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11940_VALUE
	 * @generated
	 * @ordered
	 */
	_11940(1, "_11940", "1194-0"),

	/**
	 * The '<em><b>11957</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11957_VALUE
	 * @generated
	 * @ordered
	 */
	_11957(2, "_11957", "1195-7"),

	/**
	 * The '<em><b>11965</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11965_VALUE
	 * @generated
	 * @ordered
	 */
	_11965(3, "_11965", "1196-5"),

	/**
	 * The '<em><b>11973</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11973_VALUE
	 * @generated
	 * @ordered
	 */
	_11973(4, "_11973", "1197-3"),

	/**
	 * The '<em><b>11981</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11981_VALUE
	 * @generated
	 * @ordered
	 */
	_11981(5, "_11981", "1198-1"),

	/**
	 * The '<em><b>11999</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11999_VALUE
	 * @generated
	 * @ordered
	 */
	_11999(6, "_11999", "1199-9"),

	/**
	 * The '<em><b>12005</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12005_VALUE
	 * @generated
	 * @ordered
	 */
	_12005(7, "_12005", "1200-5"),

	/**
	 * The '<em><b>12013</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12013_VALUE
	 * @generated
	 * @ordered
	 */
	_12013(8, "_12013", "1201-3"),

	/**
	 * The '<em><b>12021</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12021_VALUE
	 * @generated
	 * @ordered
	 */
	_12021(9, "_12021", "1202-1"),

	/**
	 * The '<em><b>12039</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12039_VALUE
	 * @generated
	 * @ordered
	 */
	_12039(10, "_12039", "1203-9"),

	/**
	 * The '<em><b>12047</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12047_VALUE
	 * @generated
	 * @ordered
	 */
	_12047(11, "_12047", "1204-7"),

	/**
	 * The '<em><b>12054</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12054_VALUE
	 * @generated
	 * @ordered
	 */
	_12054(12, "_12054", "1205-4");

	/**
	 * The '<em><b>11932</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11932</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11932
	 * @model literal="1193-2"
	 * @generated
	 * @ordered
	 */
	public static final int _11932_VALUE = 0;

	/**
	 * The '<em><b>11940</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11940</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11940
	 * @model literal="1194-0"
	 * @generated
	 * @ordered
	 */
	public static final int _11940_VALUE = 1;

	/**
	 * The '<em><b>11957</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11957</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11957
	 * @model literal="1195-7"
	 * @generated
	 * @ordered
	 */
	public static final int _11957_VALUE = 2;

	/**
	 * The '<em><b>11965</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11965</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11965
	 * @model literal="1196-5"
	 * @generated
	 * @ordered
	 */
	public static final int _11965_VALUE = 3;

	/**
	 * The '<em><b>11973</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11973</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11973
	 * @model literal="1197-3"
	 * @generated
	 * @ordered
	 */
	public static final int _11973_VALUE = 4;

	/**
	 * The '<em><b>11981</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11981</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11981
	 * @model literal="1198-1"
	 * @generated
	 * @ordered
	 */
	public static final int _11981_VALUE = 5;

	/**
	 * The '<em><b>11999</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11999</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11999
	 * @model literal="1199-9"
	 * @generated
	 * @ordered
	 */
	public static final int _11999_VALUE = 6;

	/**
	 * The '<em><b>12005</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12005</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12005
	 * @model literal="1200-5"
	 * @generated
	 * @ordered
	 */
	public static final int _12005_VALUE = 7;

	/**
	 * The '<em><b>12013</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12013</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12013
	 * @model literal="1201-3"
	 * @generated
	 * @ordered
	 */
	public static final int _12013_VALUE = 8;

	/**
	 * The '<em><b>12021</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12021</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12021
	 * @model literal="1202-1"
	 * @generated
	 * @ordered
	 */
	public static final int _12021_VALUE = 9;

	/**
	 * The '<em><b>12039</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12039</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12039
	 * @model literal="1203-9"
	 * @generated
	 * @ordered
	 */
	public static final int _12039_VALUE = 10;

	/**
	 * The '<em><b>12047</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12047</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12047
	 * @model literal="1204-7"
	 * @generated
	 * @ordered
	 */
	public static final int _12047_VALUE = 11;

	/**
	 * The '<em><b>12054</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12054</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12054
	 * @model literal="1205-4"
	 * @generated
	 * @ordered
	 */
	public static final int _12054_VALUE = 12;

	/**
	 * An array of all the '<em><b>Race American Indian Creek</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianCreek[] VALUES_ARRAY =
		new RaceAmericanIndianCreek[] {
			_11932,
			_11940,
			_11957,
			_11965,
			_11973,
			_11981,
			_11999,
			_12005,
			_12013,
			_12021,
			_12039,
			_12047,
			_12054,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Creek</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianCreek> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Creek</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCreek get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianCreek result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Creek</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCreek getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianCreek result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Creek</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCreek get(int value) {
		switch (value) {
			case _11932_VALUE: return _11932;
			case _11940_VALUE: return _11940;
			case _11957_VALUE: return _11957;
			case _11965_VALUE: return _11965;
			case _11973_VALUE: return _11973;
			case _11981_VALUE: return _11981;
			case _11999_VALUE: return _11999;
			case _12005_VALUE: return _12005;
			case _12013_VALUE: return _12013;
			case _12021_VALUE: return _12021;
			case _12039_VALUE: return _12039;
			case _12047_VALUE: return _12047;
			case _12054_VALUE: return _12054;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianCreek(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianCreek
